﻿@extends('layouts.homes')
    @section('info')
        <title>{{ $cate->cate_name }}-{{ Config::get('web.web_title') }}</title>
        <meta name="keywords" content="{{ $cate->cate_keywords }}" />
        <meta name="description" content="{{ $cate->cate_discription }}" />
    @endsection
@section('content')
<article class="blogs">
<h1 class="t_nav"><span>{{ $cate->cate_title }}</span><a href="{{ url('/') }}" class="n1">网站首页</a><a href="{{  url('/cate').'/'.$cate->cate_id }}" class="n2">{{ $cate->cate_name }}</a></h1>
<div class="newblog left">
    @foreach($data as $d)
   <h2>{{ $d->art_title }}</h2>
   <p class="dateview"><span>发布时间：{{ date('y-m-d',$d->art_time) }}</span><span>作者：{{ $d->art_editor }}</span><span>分类：[<a href="{{  url('/cate').'/'.$cate->cate_id }}">{{ $cate->cate_name }}</a>]</span></p>
    <figure><img src="{{ url('').$d->art_img }}"></figure>
    <ul class="nlist">
      <p>{{ $d->art_discription }}</p>
      <a title="{{ $d->art_title }}" href="{{ url('/art/').'/'.$d->art_id }}" target="_blank" class="readmore">阅读全文>></a>
    </ul>
    <div class="line"></div>
    @endforeach
    <div class="blank"></div>
    <div class="ad">  
    <img src="{{ asset('/homestyle/images/ad.png') }}">
    </div>
    <div class="page">
        {{ $data->links() }}
    </div>
</div>
<aside class="right">
   @if($submenu->all())
   <div class="rnav">
      <ul>

           @foreach($submenu as $k=>$s)
           <li class="rnav{{$k+1}}"><a href="{{  url('/cate').'/'.$s->cate_id }}" target="_blank">{{ $s->cate_name }}</a></li>
           @endforeach

     </ul>      
    </div>
    @endif
    <!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script>
    <script type="text/javascript" id="bdshell_js"></script>
    <script type="text/javascript">
        document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
    </script>
    <!-- Baidu Button END -->
   <div class="news" style="float: left;">
        @parent
   </div>
</aside>
</article>
@endsection